#!/bin/bash

if [[ $# < 2 ]]; then
    echo "parameters are not enough!"
    exit
fi

nodes=$1
edges=$2

echo "nodes*edge: " $nodes"*"$edges
cd ../R-MAT/
sed -i 's/^n .*/n '"$nodes"'/' config.me
sed -i 's/^m .*/m '"$edges"'/' config.me
./GTgraph-rmat -c config.me -o /dev/stdout | python rmat-2-custom.py 1000 > ../scripts/output/gtgrmat_n${nodes}_m${edges}.wel

du -sh ../scripts/output/gtgrmat_n${nodes}_m${edges}.wel

